#include"List.h"

void ListTest01()
{
	//LTNode* plist = NULL;
	//LTInit(&plist);

	LTNode* plist = LTInit();
}

void ListTest2()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	PrintList(plist);
	/*LTPushFront(plist, 5);
	LTPushFront(plist, 6);
	LTPushFront(plist, 7);
	PrintList(plist);*/
	/*LTPopBack(plist);
	LTPopBack(plist);*/

	// 头删
	/*LTPopFront(plist);
	PrintList(plist);
	LTPopFront(plist);
	PrintList(plist);
	LTPopFront(plist);
	PrintList(plist);
	LTPopFront(plist);
	PrintList(plist);
	LTPopFront(plist);
	PrintList(plist);
	LTPopFront(plist);
	PrintList(plist);
	LTPopFront(plist);
	PrintList(plist);
	LTPopFront(plist);
	PrintList(plist);*/

	LTNode* findRet1 = LTFind(plist, 1);
	LTInsert(findRet1, 100);
	PrintList(plist);

	LTNode* findRet2 = LTFind(plist, 100);
	LTErase(findRet2);
	PrintList(plist);

}

int main() 
{
	//ListTest01();
	ListTest2();
	return 0;
}